<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Service Worker Demo</title>
    <script>
        if ('serviceWorker' in navigator) {
            window.addEventListener('load', () => {
                const hash = Date.now()
                navigator.serviceWorker.register('/service-worker.js?t='+hash).then(registration => {
                    console.log('Service Worker registered with scope:', registration.scope);
                }).catch(error => {
                    console.log('Service Worker registration failed:', error);
                });
            });
        }
    </script>
    <link rel="stylesheet" href="/index.css">
    <script src="http://localhost:7001/api/test.js"></script>
</head>
<body>
    <h1>Service Worker Demo</h1>
    
</body>
</html>